/**
 * redux action类型
 * 
 * @author Indolphin
 */

import { User } from '../interface';

export const UPDATE_USER = "update_user";
export type UPDATE_USER_TYPE = typeof UPDATE_USER;

export const LOGOUT_USER = "logout_user";
export type LOGOUT_USER_TYPE = typeof LOGOUT_USER;

export interface UpdateUserActionType {
    type: UPDATE_USER_TYPE,
    payload: User
}
export interface UserLogoutActionType {
    type: LOGOUT_USER_TYPE,
    payload: User
}
export type UserActionType = UpdateUserActionType | UserLogoutActionType;